package com.ruoyi.caigou.mapper;

import com.ruoyi.system.api.domain.caigou.BuyBackReqDetail;

import java.util.List;

/**
 * 采购退货申请详情Mapper接口
 *
 * @author ruoyi
 * @date 2024-10-29
 */
public interface BuyBackReqDetailMapper {
    /**
     * 查询采购退货申请详情
     *
     * @param id 采购退货申请详情主键
     * @return 采购退货申请详情
     */
    public BuyBackReqDetail selectBuyBackReqDetailById(Integer id);

    /**
     * 查询采购退货申请详情列表
     *
     * @param BuyBackReqDetail 采购退货申请详情
     * @return 采购退货申请详情集合
     */
    public List<BuyBackReqDetail> selectBuyBackReqDetailList(BuyBackReqDetail BuyBackReqDetail);

    /**
     * 新增采购退货申请详情
     *
     * @param BuyBackReqDetail 采购退货申请详情
     * @return 结果
     */
    public int insertBuyBackReqDetail(BuyBackReqDetail BuyBackReqDetail);

    /**
     * 修改采购退货申请详情
     *
     * @param BuyBackReqDetail 采购退货申请详情
     * @return 结果
     */
    public int updateBuyBackReqDetail(BuyBackReqDetail BuyBackReqDetail);

    /**
     * @return int
     * @description 根据采购退货单id删除采购退货详情
     * @date 2024/10/29 上午9:14
     * @Param buyBackReqId:
     **/
    public int deleteBuyBackReqDetailByBuyBackReqId(Integer buyBackReqId);

    /**
     * @return int
     * @description TODO
     * @date 2024/10/29 上午9:49
     * @Param buyBackReqIds:
     **/
    public int deleteBuyBackReqDetailByBuyBackReqIds(Integer[] buyBackReqIds);

}
